<?php
namespace app\index\controller;
use \think\Controller;
use \think\Request;
use \think\Session;
use \think\Db;

class Index extends Controller
{
    public function index()
    {
    	$section = Db::name('section')->select();
    	$area = Db::name('area')->field(['a_name','sec_id','icon'])->select();

        $per = Session::get('person');
     //    // var_dump($per);
        return $this->fetch('index',['title'=>'蒸汽男孩论坛-游戏爱好者聚集地','per'=>$per,'section'=>$section,'area'=>$area]);
    }

}
